import React from "react";
import styled from "styled-components";
import weixin from "@/assets/images/common/weixin.jpg"
import TIKTOK from "@/assets/images/common/TIKTOK.png"
import CHAT from "@/assets/images/common/CHAT.png"
import READ from "@/assets/images/common/READBOOK.png"
import douyin from "@/assets/images/common/douyin_icon.png"
import read_book from "@/assets/images/common/read_book_icon.png"
import gzweixin from "@/assets/images/common/weixin_icon.png"
const Container = styled.div`
display: flex;
.tooltip-container {
  position: relative;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 17px;
  border-radius: 10px;
}

.tooltip {
  position: absolute;
  width: 144px;
  height: 144px;
  top: 0px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  border-radius: 15px;
  box-shadow: inset 5px 5px 5px rgba(0, 0, 0, 0.2),
    inset -5px -5px 15px rgba(255, 255, 255, 0.1),
    5px 5px 15px rgba(0, 0, 0, 0.3), -5px -5px 15px rgba(255, 255, 255, 0.1);
}

.tips:hover .tooltip {
  top: -150px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.icon {
  text-decoration: none;
  color: #fff;
  display: block;
  position: relative;
}
.layer {
  width: 55px;
  height: 55px;
  transition: transform 0.3s;
}
.icon:hover .layer {
  transform: rotate(-35deg) skew(20deg);
}
.layer span {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  border: 1px solid #fff;
  border-radius: 5px;
  transition: all 0.3s;
}

.layer span,
.text {
  color: #1da1f2;
}

.icon:hover.layer span {
  box-shadow: -1px 1px 3px #1da1f2;
}
.icon .text {
  position: absolute;
  left: 50%;
  bottom: -5px;
  opacity: 0;
  font-weight: 500;
  transform: translateX(-50%);
  transition: bottom 0.3s ease, opacity 0.3s ease;
}
.icon:hover .text {
  bottom: -35px;
  opacity: 1;
}

.icon:hover .layer span:nth-child(1) {
  opacity: 0.2;
}
.icon:hover .layer span:nth-child(2) {
  opacity: 0.4;
  transform: translate(5px, -5px);
}
.icon:hover .layer span:nth-child(3) {
  opacity: 0.6;
  transform: translate(10px, -10px);
}
.icon:hover .layer span:nth-child(4) {
  opacity: 0.8;
  transform: translate(15px, -15px);
}
.icon:hover .layer span:nth-child(5) {
  opacity: 1;
  transform: translate(20px, -20px);
}

.layer span.fab {
  font-size: 30px;
  line-height: 64px;
  text-align: center;
  /* fill: #1da1f2; */
  background: #000;
}
.user {
  display: flex;
  gap: 10px;
}
.img {
  width: 50px;
  height: 50px;
  font-size: 25px;
  font-weight: 700;
  /* border: 1px solid #1da1f2; */
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.name {
  font-size: 17px;
  font-weight: 700;
  /* color: #1da1f2; */
}
.details {
  display: flex;
  flex-direction: column;
  gap: 0;
  color: #fff;
}
.about {
  color: #ccc;
  padding-top: 5px;
}


`;

function TipsImage() {
  return (
    <Container className="gap-x-5 ml-20 mt-2">
      <div className="tooltip-container">
        <div className="text tips">
          <a className="icon">
            <div className="layer">
              <span></span>
              <span></span>
              {/* <span></span>
            <span></span> */}
              <span className="">
                <img src={CHAT}></img>
              </span>
            </div>
            {/* <div className="text">LinkedIn</div> */}
          </a>
          <div className="tooltip">
            <img src={gzweixin}></img>
          </div>
        </div>
      </div>

      <div className="tooltip-container">
        <div className="text tips">
          <a className="icon">
            <div className="layer">
              <span></span>
              <span></span>
              {/* <span></span>
            <span></span> */}
              <span className="">
                <img src={TIKTOK}></img>
              </span>
            </div>
            {/* <div className="text">LinkedIn</div> */}
          </a>
          <div className="tooltip">
            <img src={douyin}></img>
          </div>
        </div>
      </div>

      <div className="tooltip-container">
        <div className="text tips">
          <a className="icon">
            <div className="layer">
              <span></span>
              <span></span>
              {/* <span></span>
            <span></span> */}
              <span className="">
                <img src={READ}></img>
              </span>
            </div>
            {/* <div className="text">LinkedIn</div> */}
          </a>
          <div className="tooltip">
            <img src={read_book}></img>
          </div>
        </div>
      </div>

    </Container>
  );
}

export default TipsImage;
